/**
 * Copyright (C) 2021-2022 maminjie <canpool@163.com>
 * SPDX-License-Identifier: LGPL-2.1
 * Powered by Qt-Advanced-Docking-System
**/

#include "qads_global.h"

namespace QAds {

static ConfigFlags g_staticConfigFlags = DefaultNonOpaqueConfig;

ConfigFlags configFlags()
{
    return g_staticConfigFlags;
}

void setConfigFlags(const ConfigFlags flags)
{
    g_staticConfigFlags = flags;
}

void setConfigFlag(ConfigFlag flag, bool on)
{
    g_staticConfigFlags.setFlag(flag, on);
}

bool testConfigFlag(ConfigFlag flag)
{
    return g_staticConfigFlags.testFlag(flag);
}

} // namespace QAds
